<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>openyelp</title>
<link rel="stylesheet" href="${siteurl}assets/css/www-pkg.css" />
<link rel="stylesheet" href="${siteurl}assets/css/writeareview-pkg.css" />
<link rel="stylesheet" href="${siteurl}assets/css/search.css" />
		[#include "/theme/yelp/common/scripts.html"]

<script type="text/javascript"
	src="http://api.map.baidu.com/api?v=2.0&ak=slXaZk8V8DUWQF2MQnuW4Q5x"></script>
</head>

<body class="country-hk logged-out ytype jquery" id="yelp_main_body"
	ryt13230="1">

	<div id="fb-root"></div>

	<div class="lang-en" id="wrap">



		[#include "/theme/yelp/common/header.html"]

		<div id="print-masthead">
			<img alt="Yelp" class="print-bkg-img"
				src="http://s3-media2.fl.yelpcdn.com/assets/2/www/img/b7e9d647188d/gfx/header_print.gif">
		</div>

		<span class="offscreen" id="page-content">&nbsp;</span>

		<div class="main-content-wrap">
			<div class="top-shelf top-shelf-grey">
				<div class="content-container">


					<div id="alert-container"></div>


					<div class="clearfix layout-block layout-a search-header-wrap">
						<div class="column column-alpha ">
							<h1 class="embossed-text-white">${user.name!""}, 正等待你的下一条评语</h1>
							<h2>
								<b>讨论由你最钟意嘅茶餐厅到最好嘅牙医，有乜好同有乜唔好。</b>
							</h2>

							<form name="business-search" method="post" id="search_form"
								class="yform business-search-form" action="${siteurl}user/search.htm"
								data-component-bound="true">
								<div class="business-search-form-inner">
									<div class="field-container">
										<ul class="inline-layout clearfix">
											<li>
												<div class="pseudo-input business-find-decorator">
													<div class="flex-container-inline">
														<div class="label">搜寻</div>
														<div class="flex-box input-holder">
															<input type="text" value="${find_desc!''}" name="find_desc" id="war_desc"
																autocomplete="off" data-component-bound="true">
														</div>
													</div>
												</div>
											</li>
											<li>
												<div class="pseudo-input">
													<div class="flex-container-inline">
														<div class="label">地点</div>
														<div class="flex-box input-holder">
															<input type="text" value="${find_loc!''}" name="find_loc"
																id="dropperText_Review">
														</div>
														<a
															class="i-wrap ig-wrap-common i-location-picker-arrow-common-wrap location-dropper"
															href="javascript:;"><i
															class="i ig-common i-location-picker-arrow-common"></i>
															选择地点</a>
													</div>
												</div>
											</li>
										</ul>
									</div>
									<div class="button-container">
										<button
											class="ybtn ybtn-primary ybtn-small yform-search-button"
											value="submit" type="submit">
											<span><i class="i ig-common i-search-common"></i></span>
										</button>
									</div>
								</div>

								<div class="auto-complete autocomplete_choices"
									data-component-bound="true"
									style="top: 171px; left: 231.5px; width: 291px;"></div>
							</form>


						</div>
						<div class="column column-beta rating-building-wrap">
							<img
								src="https://s3-media3.fl.yelpcdn.com/assets/2/www/img/a6e957098745/writeareview/rating_building.png">

						</div>
					</div>

				</div>
			</div>

			<div class="content-container" id="super-container">

				<div class="container search indexed-biz-archive">
					<h2>见到你想分享评语嘅商店？</h2>


					<div class="clearfix layout-block layout-a scroll-map-container">
						<div class="column column-alpha ">
							<ul class="ylist ylist-bordered search-results">
							
							[#if list??]
							[#list list as item]
							
								<li>
									<div data-key="11"
										class="search-result natural-search-result biz-listing-large">
										<div class="main-attributes">
											<div class="media-block media-block--12">
												<div class="media-avatar">
													<div class="photo-box pb-90s">
														<a href="${siteurl}shop/view.htm?id=${item.id}">
															<img width="90" height="90"
															src="//s3-media2.fl.yelpcdn.com/bphoto/9-XIV_yG8hGTkgu0QNCQ1w/90s.jpg"
															class="photo-box-img" alt="Beef &amp; Liberty">

														</a>

													</div>



												</div>
												<div class="media-story">
													<h3 class="search-result-title">
														<span class="indexed-biz-name">11. <a
															data-hovercard-id="jGwWYZ-wR0kh0KdIjXu3uw"
															href="${siteurl}shop/view.htm?id=${item.id}"
															class="biz-name">${item.name!""}</a>
														</span>

													</h3>
													<div class="biz-rating biz-rating-large clearfix">

														<div class="rating-large">
															<i title="4.5星级评分" class="star-img stars_4_half"> <img
																width="84" height="303"
																src="//s3-media4.fl.yelpcdn.com/assets/srv0/yelp_styleguide/c2252a4cd43e/assets/img/stars/stars_map.png"
																class="offscreen" alt="4.5星级评分">
															</i>
														</div>


														<span class="review-count rating-qualifier"> ${item.comment_num!"0"}条评语
														</span>

													</div>

													<div class="price-category">
														<span class="bullet-after"> <span
															class="business-attribute price-range">$$</span>
														</span> <span class="category-str-list"> <a
															href="${siteurl}shop/writeareview.htm?id=${item.id}">汉堡包</a>
														</span>


													</div>

													<a class="ybtn ybtn-primary"
														href="${siteurl}shop/writeareview.htm?id=${item.id}"><span
														class="i-wrap ig-wrap-common i-war-star-common-wrap"><i
															class="i ig-common i-war-star-common"></i> 写评语</span></a> <a
														class="ybtn"
														href="${siteurl}shop/writeareview.htm?id=${item.id}"><span
														class="i-wrap ig-wrap-common i-war-star-grey-common-wrap"><i
															class="i ig-common i-war-star-grey-common"></i> 写评语</span></a>
												</div>
											</div>
										</div>

										<div class="secondary-attributes">
											<span class="neighborhood-str-list"> ${item.area.name!""} </span>

											<address></address>



											<span class="offscreen">电话号码</span> <span class="biz-phone">
												${item.phone!""}</span>

										</div>
									</div>

								</li>
							[/#list]
							[/#if]
							</ul>


							[#include "/theme/yelp/common/pageryelpsearch.html"]
                            [@pager page curpage "${siteurl}user/search.htm?pagesize=${pagesize}"][/@pager]




						</div>
						<div class="column column-beta ">
							<div class="map-wrapper"
								style="position: relative; z-index: auto;">
								<div class="yelp-map-container ieSucks" id="map-container">
									<div id="allmap" class="engine-container"
										style="background-color: rgb(229, 227, 223);"></div>
								</div>
								<div class="search-feedback-box island">
									<div class="feedback-biz-suggest">
										<h3>搵唔到？同我地讲差啲羊。</h3>
										<p>如果搵唔到你想搵嘅商店，新增啦！</p>
										<a class="ybtn ybtn-primary ybtn-small ytype"
											id="add-biz-button"
											href="${siteurl}user/newbiz.htm">新增商店</a>
									</div>
									<div class="feedback-contact">
										对搜寻结果有意见？<a class="search-feedback"
											href="/contact?topic=feedback">帮我地改进。</a>
									</div>
								</div>

							</div>

						</div>
					</div>


				</div>
			</div>
		</div>

		<!-- google_ad_section_start(weight=ignore) -->
		<!-- <a href="/biz/outlook-autumn-market-fundamental-catwalk-flimsy-roost-legibility-individualism-grocer-predestination-2">yelp</a> -->
		[#include "/theme/yelp/common/footer.html"]


	</div>


    <script type="text/javascript">
	// 百度地图API功能
	var map = new BMap.Map("allmap");
	// 编写自定义函数,创建标注
	function addMarker(point) {
		var marker = new BMap.Marker(point);
		map.addOverlay(marker);
	}
	//var marker = new BMap.Marker(point);
	//map.addOverlay(marker);

	var top_left_control = new BMap.ScaleControl({
		anchor : BMAP_ANCHOR_TOP_LEFT
	});// 左上角，添加比例尺
	var top_left_navigation = new BMap.NavigationControl(); //左上角，添加默认缩放平移控件
	var top_right_navigation = new BMap.NavigationControl({
		anchor : BMAP_ANCHOR_TOP_RIGHT,
		type : BMAP_NAVIGATION_CONTROL_SMALL
	}); //右上角，仅包含平移和缩放按钮
	/*缩放控件type有四种类型:
	BMAP_NAVIGATION_CONTROL_SMALL：仅包含平移和缩放按钮；BMAP_NAVIGATION_CONTROL_PAN:仅包含平移按钮；BMAP_NAVIGATION_CONTROL_ZOOM：仅包含缩放按钮*/

	//添加控件和比例尺
	function add_control() {
		map.addControl(top_left_control);
		//map.addControl(top_left_navigation);
		map.addControl(top_right_navigation);
	}
	//移除控件和比例尺
	function delete_control() {
		map.removeControl(top_left_control);
		map.removeControl(top_left_navigation);
		map.removeControl(top_right_navigation);
	}
	add_control();

	// 添加带有定位的导航控件
	var navigationControl = new BMap.NavigationControl({
		// 靠左上角位置
		anchor : BMAP_ANCHOR_TOP_LEFT,
		// LARGE类型
		type : BMAP_NAVIGATION_CONTROL_LARGE,
		// 启用显示定位
		enableGeolocation : true
	});
	map.addControl(navigationControl);
	// 添加定位控件
	var geolocationControl = new BMap.GeolocationControl();
	geolocationControl.addEventListener("locationSuccess", function(e) {
		// 定位成功事件
		var address = '';
		address += e.addressComponent.province;
		address += e.addressComponent.city;
		address += e.addressComponent.district;
		address += e.addressComponent.street;
		address += e.addressComponent.streetNumber;
		//alert("当前定位地址为：" + address);
	});
	geolocationControl.addEventListener("locationError", function(e) {
		// 定位失败事件
		// alert(e.message);
	});
	map.addControl(geolocationControl);

	var opts = {
		width : 250, // 信息窗口宽度
		height : 80, // 信息窗口高度
		title : "信息窗口", // 信息窗口标题
		enableMessage : true
	//设置允许信息窗发送短息
	};
	var content = "门道网";
	// marker.addEventListener("click",function(e){openInfo(content,e)});
	function openInfo(content, e) {
		var p = e.target;
		var point = new BMap.Point(p.getPosition().lng, p.getPosition().lat);
		var infoWindow = new BMap.InfoWindow(content, opts); // 创建信息窗口对象 
		map.openInfoWindow(infoWindow, point); //开启信息窗口
	}

	// 创建地址解析器实例
	function geowork() {
		var myGeo = new BMap.Geocoder();
		// 将地址解析结果显示在地图上,并调整地图视野
		myGeo.getPoint("西安市", function(point) {
			if (point) {
				map.centerAndZoom(point, 16);
				//map.addOverlay(new BMap.Marker(point));
			}
		}, "西安市");
	}
	function golocal() {

		var geolocation = new BMap.Geolocation();
		geolocation.getCurrentPosition(function(r) {
			if (this.getStatus() == BMAP_STATUS_SUCCESS) {
				//var mk = new BMap.Marker(r.point);
				//map.addOverlay(mk);
				map.panTo(r.point);
				//alert('您的位置：'+r.point.lng+','+r.point.lat);
			} else {
				geowork();
			}
		}, {
			enableHighAccuracy : true
		})

	}
	var geoc = new BMap.Geocoder();

	
	function addponit(point){
		var marker = new BMap.Marker(point);
		map.addOverlay(marker);
	}
	
	[#if list??]
	[#list list as item]
	
	[#if item_index==0]
	map.centerAndZoom(new BMap.Point(${item.gps!"108.952308, 34.27783"}), 14);
	[/#if]
	
	var p= new BMap.Point(${item.gps!"108.952308, 34.27783"});
	addponit(p);
	[/#list]
	[/#if]
</script>
</body>

</html>